package com.example.restatr.Atcivity.SeekHouse;

import androidx.appcompat.app.AppCompatActivity;
import androidx.appcompat.widget.Toolbar;

import android.content.Intent;
import android.os.Bundle;
import android.widget.EditText;
import android.widget.TextView;

import com.example.restatr.R;
import com.example.restatr.Tools;

public class HouseInfoAt extends AppCompatActivity {
    private Toolbar tb;
    private TextView barTitle;
    private EditText search;
    private TextView name;
    private TextView phone;
    private TextView address;
    private TextView Class;
    private TextView money;
    private TextView area;
    private TextView description;


    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView( R.layout.activity_zfz_info_at);

        tb = findViewById(R.id.toolbar);
        barTitle = findViewById(R.id.bar_Title);
        search = findViewById(R.id.search);
        name = findViewById(R.id.name);
        phone = findViewById(R.id.phone);
        address = findViewById(R.id.address);
        Class = findViewById(R.id.Class);
        money = findViewById(R.id.money);
        area = findViewById(R.id.area);
        description = findViewById(R.id.description);

        Tools.SetBarTitle( tb,barTitle,"房源详情",search, HouseInfoAt.this,false );


        Intent intent=getIntent();
        name.setText(intent.getStringExtra("sourceName"));
        phone.setText(intent.getStringExtra("tel"));
        address.setText(intent.getStringExtra("address"));
        Class.setText(intent.getStringExtra("houseType"));
        money.setText(intent.getStringExtra("price"));
        area.setText(intent.getStringExtra("areaSize")+"m²");
        description.setText(intent.getStringExtra("description"));
    }
}